package com.study.demoservice.service.impl;

import com.study.demoservice.bean.dto.PersonRequest;
import com.study.demoservice.service.PersonService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.validation.annotation.Validated;

import javax.validation.Valid;

/**
 * @author chenyeqing
 */
@Service
@Validated
@Slf4j
public class PersonServiceImpl implements PersonService {

    @Override
    public void validatePersonRequest(@Valid PersonRequest personRequest) {
        log.info("请求参数是{}", personRequest);
    }
}
